<include file="top" />
<script language="javascript">
 function getValue()
 {
  var s = "";
  for(var i=0;i<form1.relative_product.options.length;i++)
  {
   if(form1.relative_product.options[i].selected)
   {
    s+=form1.relative_product.options[i].value;
    s+=',';
   }
  }
  form1.rp.value=s;
 }
</script>
<div id="right">
	<h3>添加产品</h3>
	<form method="post" enctype="multipart/form-data" id="form1">
		<table width="98%" border="0" class="table">
			<tr>
				<td width="16%" >*所属栏目：</td>
				<td width="84%">
					<select name="pid">
					<volist name="cate" id="cate">
						<option value="<{$cate.id}>"><{$cate.big_category_name}></option>
					</volist>
					</select>
				</td>
			</tr>
			<!--tr>
					<td width="16%" >选择哪个分类显示：</td>
					<td width="84%">
						<select name="cid">
						<option value="0">请选择</option>
							<volist name="ac_data" id="cate">
								<option value="<{$cate.id}>"><{$cate.big_category_name}>--<{$cate.classify_name}></option>
							</volist>

						</select>
					</td>
				</tr-->
			<tr>
				<td width="16%" >*产品名称：</td>
				<td width="84%"><input class="w350"  type="text" name="product_name"></td>
			</tr>
			<tr>
				<td width="16%" >用于文章分类的产品名称：</td>
				<td width="84%"><input class="w350" type="text" name="classify_name"></td>
			</tr>
			<tr>
				<td width="16%" >title：</td>
				<td width="84%"><input class="w350" type="text" name="product_title"></td>
			</tr>
			<tr>
				<td width="16%" >*缩略图：</td>
				<td width="84%">
					<input type="file" name="t_img">（用于首页中间两个产品和具体产品页面）
				</td>
			</tr>

			<tr>
				<td width="16%" >*第三缩略图：</td>
				<td width="84%">
					<input type="file" name="three_img">（用于产品列表）
				</td>
			</tr>
			<tr>
				<td width="16%" >第二缩略图：</td>
				<td width="84%">
					<input type="file" name="sec_img">（用于首页那上面四个产品）
				</td>
			</tr>

			<tr>
				<td width="16%" >首页产品图：</td>
				<td width="84%">
					<input type="file" name="home_img">（首页下方产品box2）
				</td>
			</tr>
			<tr>
				<td width="16%" >首页是否显示产品：</td>
				<td width="84%">
					<input type="radio" name="show_home" value="1" checked="checked">是
					<input type="radio" name="show_home" value="0" checked="checked">否
				</td>
			</tr>
			<tr>
				<td width="16%" >keywords：</td>
				<td width="84%"><input class="w350" type="text" name="product_keyword"></td>
			</tr>
			<tr>
					<td width="16%" >自定义静态化名字：</td>
					<td width="84%"><input class="w350" type="text" name="statice_name"></td>
				</tr>
			<tr>
				<td width="16%" >购买链接：</td>
				<td width="84%"><input class="w350" type="text" name="buy_link"></td>
			</tr>
			<tr>
				<td width="16%" >下载链接：</td>
				<td width="84%"><input class="w350" type="text" name="download_link"></td>
			</tr>

			<tr>
				<td width="16%" >第二购买链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="sec_buy_link" value=""></td>
			</tr>
			<tr>
				<td width="16%" >第二下载链接：</td>
				<td width="84%"><input class="w350" type="text" class="wid" name="sec_download_link" value=""></td>
			</tr>
			<!--第二id-->
			<tr>
				<td width="16%" >第二产品id：</td>
				<td width="84%"><input type="text" class="wid" name="two_id" value="<{$product.two_id}>"></td>
			</tr>
			<tr>
				<td width="16%" >按钮1文字：</td>
				<td width="84%"><input type="text" class="wid" name="button_one_word" value=""></td>
			</tr>
			<tr>
				<td width="16%" >按钮2文字：</td>
				<td width="84%"><input type="text" class="wid" name="button_two_word" value=""></td>
			</tr>
			<tr>
				<td width="16%" >第二市场价格：</td>
				<td width="84%"><input type="text" class="wid" name="sec_price" value=""></td>
			</tr>
			<tr>
				<td width="16%" >第二现在价格：</td>
				<td width="84%"><input type="text" class="wid" name="two_new" value=""></td>
			</tr>
			<tr>
				<td width="16%" >只有一个下载链接：</td>
				<td width="84%">
					<input type="radio" name="one_download_link" value="1" >是
					<input type="radio" name="one_download_link" value="0" >否
				</td>
			</tr>
			<tr>
				<td width="16%" >for windows or mac：</td>
				<td width="84%">
					<input type="radio" value="0" checked="checked" name="pc">不显示
					<input type="radio" value="1" name="pc">for windows
					<input type="radio" value="2" name="pc">for mac
				</td>
			</tr>
			<tr>
				<td width="16%" >for windows or mac外链接：</td>
				<td width="84%">
					<input type="text" value="" name="out_link">
				</td>
			</tr>
			<tr>
				<td width="16%" >价格下降幅度：</td>
				<td width="84%">
					<input type="text" value="" name="price_down_range">以百分号表示
				</td>
			</tr>
			<tr>
				<td width="16%" >是否流行：</td>
				<td width="84%">
					<input type="radio" value="1" name="is_popular">是
					<input type="radio" value="0" checked="checked" name="is_popular">否
				</td>
			</tr>
			<tr>
				<td width="16%" >是否热卖：（首页产品）</td>
				<td width="84%">
					<input type="radio" value="1" name="is_hot">是
					<input type="radio" value="0" checked="checked" name="is_hot">否
				</td>
			</tr>
			<tr>
				<td width="16%" >是否热卖：（产品页显示热卖图标）</td>
				<td width="84%">
					<input type="radio" value="1" name="hot_show">是
					<input type="radio" value="0" checked="checked" name="hot_show">否
				</td>
			</tr>
			<tr>
				<td width="16%" >是否新增：</td>
				<td width="84%">
					<input type="radio" value="1" name="is_new">是
					<input type="radio" value="0" checked="checked" name="is_new">否
				</td>
			</tr>
			<tr>
				<td width="16%" >市场价：</td>
				<td width="84%"><input type="text" name="market_price"></td>
			</tr>
			<tr>
				<td width="16%" >现在价格：</td>
				<td width="84%"><input type="text" name="now_price"></td>
			</tr>
			<tr>
				<td width="16%" >Size：</td>
				<td width="84%"><input type="text" name="size"></td>
			</tr>
			<tr>
				<td width="16%" >相关产品：</td>
				<td width="84%">
					<select name="relative_product" id="relative_product" multiple=”multiple” style="height:180px;over-flow:hidden;">
						<volist name="allpro" id="vo">
							<option value="<{$vo.id}>" ><{$vo.big_category_name}>--<{$vo.product_name}></option>
						</volist>
					</select>
					<input type="hidden" id="rp" name="rp" value="">
				</td>
			<tr>
				<td width="16%" >seo内容简介：</td>
				<td width="84%"><textarea id="introduce" name="introduce" style="width:400px;height:100px;"></textarea></td>
		    </tr>
		    <tr>
				<td width="16%" >第二描述：</td>
				<td width="84%"><textarea id="sec_description" name="sec_description" style="width:800px;height:200px;"></textarea></td>
		    </tr>
			<tr>
				<td width="16%" >内容：</td>
				<td width="84%"><textarea id="product_content" name="product_content" style="width:800px;height:300px;"></textarea></td>
			</tr>
			<tr>
				<td width="16%" ></td>
				<td width="84%"><input type="submit" value="提交" name="sub" onclick="getValue()" /></td>
			</tr>
		</table>
	</form>
	<script type="text/javascript">
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('#product_content', {
					allowFileManager : true
				});
			});
	</script>
	<script type="text/javascript">
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('#sec_description', {
					allowFileManager : true
				});
			});
	</script>
</div>
</body>
</html>